import express from 'express';
import appRoutes from './auth/app';
import ocrRouter from './common/upload2ocr';
import uploadRouter from './common/upload';
import appUserRouter from './users/app';
import dictionaryAppRoutes from './dictionary/app';
import homeAppRoutes from './home/app';
import contentAppRoutes from './content/app';
import policyAppRoutes from './policy/app';
import paymentAppRoutes from './payment/app';
import messageAppRoutes from './message/app';

const router = express.Router();

router.use('/mp', appRoutes);
router.use('/ocr', ocrRouter);
router.use('/upload', uploadRouter);
router.use('/users', appUserRouter);
router.use('/dictionary', dictionaryAppRoutes);
router.use('/home', homeAppRoutes);
router.use('/content', contentAppRoutes);
router.use('/policy', policyAppRoutes);
router.use('/payment', paymentAppRoutes);
router.use('/message', messageAppRoutes);

export default router;